package com.aiti.lulian.mapper;

import com.aiti.base.core.base.mapper.SuperMapper;
import com.aiti.lulian.dto.LuLianSourcingDemandDto;
import com.aiti.lulian.entity.LuLianSourcingDemand;
import com.aiti.lulian.vo.crm.SourcingDemandVo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @ClassName ILuLianSourcingDemandMapper
 * @Description 供需商机表dao
 * @Author diaozhende
 * @Date 2024/5/31 0031 10:47
 */
@Repository
public interface ILuLianSourcingDemandMapper extends SuperMapper<LuLianSourcingDemand> {

    /**
     * 分页查询
     *
     * @param page              分页器
     * @param sourcingDemandDto 参数对象
     * @return com.baomidou.mybatisplus.extension.plugins.pagination.Page<com.aiti.lulian.entity.LuLianSourcingDemand>
     * @date 2024/5/31 0031 11:07
     * @author diaozhende
     */
    Page<LuLianSourcingDemand> queryPage(Page<LuLianSourcingDemand> page, @Param("sourcingDemandDto") LuLianSourcingDemandDto sourcingDemandDto);


    /**
     * 根据ID查询
     *
     * @param id ID
     * @return com.aiti.lulian.entity.LuLianSourcingDemand
     * @date 2024/6/4 0004 10:51
     * @author diaozhende
     */
    LuLianSourcingDemand queryById(@Param("id") String id);


    /**
     * 多参数查询
     *
     * @param sourcingDemand 多参数数据
     * @return java.util.List<com.aiti.lulian.entity.LuLianSourcingDemand>
     * @date 2024/6/14 0014 8:58
     * @author diaozhende
     */
    List<LuLianSourcingDemand> queryByParams(@Param("sourcingDemand") LuLianSourcingDemand sourcingDemand);

    SourcingDemandVo queryBySourcingDemandByBaseId(@Param("baseId") String baseId);

}
